package com.download.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * @description: 用户浏览历史
 * @author: cmy
 * @create: 2019-03-08 20:47
 **/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class BusUserHistory {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer articleId;
    private Date createTime;

    public BusUserHistory(Integer userId, Integer articleId) {
        this.userId = userId;
        this.articleId = articleId;
        this.createTime = new Date();
    }
}
